div#overlay {
  display: none;
  position: fixed;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 400000;
  background-color: rgba(229, 229, 229, 0.4);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = #40E5E5E5, endColorstr = #40E5E5E5);

  .spinner {
    top: 50%;
    left: 50%;
  }
}

div#overlay_text_box {
  color: #333333;
  font-size: 18px;
  left: 50%;
  line-height: 120px;
  margin-left: -100px;
  margin-top: -25px;
  position: absolute;
  text-align: center;
  top: 50%;
  width: 200px;

  img {
    position: relative;
    top: 9px;
  }
}

#logout {
  box-sizing: border-box;
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: $main-menu-width;
  background-color: $main-menu-bg-color;
  border-right: $default-border;
  transition: background-color $transition-duration $transition-easing;

  &:hover {
    background-color: $main-menu-active-bg-color;
  }

  .collapsed-menu & {
    width: $collapsed-main-menu-width;
  }

  a {
    display: block;
    padding-left: 3 * $default-padding;
    line-height: 45px;

    &:hover {
      text-decoration: none;
    }

    label {
      padding-left: 2 * $default-padding;
    }
  }

  img {
    margin-bottom: 4px;
  }
}

#header {
  height: $header-height;
  line-height: $header-height;
  background: $light-blue;
  border-bottom: $default-border;
  position: relative;

  a {
    display: inline-block;
    vertical-align: middle;

    &:hover {
      text-decoration: none;
    }
  }

  .page_status_and_name {
    padding: 0 8px;
    background-color: $medium-gray;
    text-shadow: $text-shadow-light;
    @extend .disable-user-select;
    @extend .locked_page;
    cursor: default;
    border-bottom-color: $toolbar-bg-color;
  }

  .page_name {
    margin-right: $default-margin;
    line-height: $header-height;
  }
}

#main_content {
  box-sizing: border-box;
  background-color: $light-gray;
  padding: 84px 8px 8px $main-menu-width + 10px;
  z-index: 0;
  width: 100%;
  height: 100%;
}

#archive_all {
  box-sizing: border-box;
  height: 100%;
  padding-bottom: 60px;

  &.with_tag_filter {

    table {
      padding-right: 230px;
    }

    > .info {
      margin-right: 230px;
    }
  }

  &.resources-table-wrapper {
    padding-top: 47px;

    > table {
      padding-bottom: 60px;
    }
  }
}

#user_info {
  position: absolute;
  top: 0;
  right: 0;
  height: $header-height;
  font-size: 11px;
  padding-left: 2*$default-padding;
  background-color: $light-blue;
  border-bottom: $default-border;

  .select2-container {
    margin-top: -3px;
    padding-right: 2*$default-padding;
  }

  .select2-choice {
    padding-right: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: $default-border;
    height: $header-height + 1;
    line-height: $header-height;
    text-shadow: $text-shadow-light;

    .select2-arrow {
      width: 14px;
      border-left: none;

      b {
        color: $muted-text-color;

        &:before {
          position: absolute;
          top: 50%;
          transform: translateY(-50%);
        }
      }
    }
  }

  .select2-dropdown-open {
    background-color: $main-menu-bg-color;

    .select2-choice .select2-arrow b {
      background-position: -20px -5px;
    }
  }

  .current-user-name {
    padding-right: 2*$default-padding;
  }
}

#locked_pages {
  overflow: hidden;

  label {
    float: left;
    font-size: 10px;
    line-height: 27px;
    height: 27px;
    margin-left: 8px;
    margin-right: 4px;
  }

  img {
    float: left;
  }

  .subnavi_tab > a {
    padding-right: 0;
  }
}
